using System;
using TimeSheetDAL;

namespace TimeSheetBLL
{
    [Table("nonchargeablehours")]
    [PrimaryKeyAttribute("nch_id", "ID")]
    [ColumnAttribute("activity_id", "ActivityID")]
    [ColumnAttribute("user_id", "UserID")]
    [ColumnAttribute("non_charge_date", "NonChargeDate")]
    [ColumnAttribute("non_charge_hours", "NonChargeHours")]
    [ColumnAttribute("comments", "Comments")]
    public class NonChargeableHours : IDBEntity
    {
        private long activityID;
        private long userID;
        private DateTime nonChargeDate;
        private double nonChargeHours;
        private string comments;
        private long iD;

        private string activityName;

        public NonChargeableHours()
        {
        }

        public NonChargeableHours(string activityName, double hours)
        {
            this.activityName = activityName;
            nonChargeHours = hours;
        }

        public string ActivityName
        {
            get { return activityName; }
            set { activityName = value; }
        }

        public long ID
        {
            get { return iD; }
            set { iD = value; }
        }

        public long ActivityID
        {
            get { return activityID; }
            set { activityID = value; }
        }

        public long UserID
        {
            get { return userID; }
            set { userID = value; }
        }

        public DateTime NonChargeDate
        {
            get { return nonChargeDate; }
            set { nonChargeDate = value; }
        }

        public double NonChargeHours
        {
            get { return nonChargeHours; }
            set { nonChargeHours = value; }
        }

        public string Comments
        {
            get { return comments; }
            set { comments = value; }
        }
    } //class
} //namespace